﻿/// <reference path="~/app/libs/sencha-touch-debug.js" />
Ext.define("iMobileS.model.Products", {
    extend: "Ext.data.Model",
    config: {
        idProperty: "ProductID",
        fields: [
            { name: 'ProductID', type: 'int' },
            { name: 'ProductName', type: 'string' },
            { name: 'Description', type: 'string' },
            { name: 'SupplierID', type: 'int' },
            { name: 'CategoryID', type: 'int' },
            { name: 'QuantityPerUnit', type: 'string' },
            { name: 'UnitPrice', type: 'float' },
            { name: 'UnitsInStock', type: 'int' },
            { name: 'UnitsOnOrder', type: 'int' },
            { name: 'ReorderLevel', type: 'int' },
            { name: 'Discontinued', type: 'boolean' },            
            { name: 'Quantity', type: 'int' },
            { name: 'Discount', type: 'float' },
            { name: 'Total', type: 'float' }
        ]
    }
});